import request from '@/utils/request'

// 查询活动类型列表
export function listActivitytype(query) {
  return request({
    url: '/miniapp/activitytype/list',
    method: 'get',
    params: query
  })
}

// 查询活动类型详细
export function getActivitytype(activityTypeId) {
  return request({
    url: '/miniapp/activitytype/' + activityTypeId,
    method: 'get'
  })
}

// 新增活动类型
export function addActivitytype(data) {
  return request({
    url: '/miniapp/activitytype',
    method: 'post',
    data: data
  })
}

// 修改活动类型
export function updateActivitytype(data) {
  return request({
    url: '/miniapp/activitytype',
    method: 'put',
    data: data
  })
}

// 删除活动类型
export function delActivitytype(activityTypeId) {
  return request({
    url: '/miniapp/activitytype/' + activityTypeId,
    method: 'delete'
  })
}
